package com.cqie.hospitalescort.message;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class ChatMessage {

    @ApiModelProperty("用户ID")
    private Long userId;

    @ApiModelProperty("陪诊员ID")
    private Long escortId;

    @ApiModelProperty("聊天内容")
    private String content;

    @ApiModelProperty("聊天室编号，确保用户和商家的聊天室唯一")
    private String chatCode;

    @ApiModelProperty("发送者类型：0-USER-用户, 1-ESCORT-商家")
    @NotNull(message = "类型不能为空！")
    private typeEnum senderType;

    private enum typeEnum{
        USER, ESCORT
    }
}